package com.qrpcw.test;

import org.junit.Assert;

import com.qrpcw.algorithms.BubbleSort;

import junit.framework.TestCase;

public class testAlgorithms extends TestCase {
	public testAlgorithms(){}
	
	public void testBubbleSort(){
		int[] actual = new int[]{2,35,31,3,21,17,19,26,25,33};
		int[] expected = new int[]{35,33,31,26,25,21,19,17,3,2};
		BubbleSort bubble = new BubbleSort();
		bubble.bubbleSort(actual);
		Assert.assertArrayEquals(expected, actual);	
	}
}
